package com.zero.clinic.service.impl;

import com.zero.clinic.mapper.DeptMapper;
import com.zero.clinic.pojo.Dept;
import com.zero.clinic.pojo.DeptExample;
import com.zero.clinic.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Dept> selectByExample(DeptExample example) {
        return deptMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long deptId) {
        return deptMapper.deleteByPrimaryKey(deptId);
    }

    @Override
    public int insert(Dept record) {
        return deptMapper.insert(record);
    }

    @Override
    public int insertSelective(Dept record) {
        return deptMapper.insertSelective(record);
    }

    @Override
    public Dept selectByPrimaryKey(Long deptId) {
        return deptMapper.selectByPrimaryKey(deptId);
    }

    @Override
    public int updateByPrimaryKeySelective(Dept record) {
        return deptMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByIds(String[] deptIds) {
        return deptMapper.deleteByIds(deptIds);
    }
}
